<?php

/* EclipseBB:Includes::DBSelect (dbselect.inc.php)
 *
 * This file selects which database class to use
 * based upon the selection made in the forum's
 * configuration.
 *
 * (C) 2009 EclipseBB Group
*/

include('eclipsebb.conf.php');

	switch($config['db_type']) {

		case "mysql":
		include('inc/classes/db_mysql.class.php');
		$db = new db();
		$db->connect();
		break;

		case "mysqli":
		include('inc/classes/db_mysqli.class.php');
		$db = new db();
		$db->connect();
		break;

	}

?>